﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace NoteHelper.BaseControl
{
    public class Helper4TextBox : StringHelper
    {
    }

    public class Helper4Label : StringHelper
    { }

    public class StringHelper : IControlHelper
    {
        public object GetValue(Control control)
        {
            return control.Text;
        }

        public void SetValue(Control control, object value)
        {
            control.Text = value == null ? "" : value.ToString();
        }
    }
}
